<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<style>
			body {
				text-align: center;
			}
			.tu2 {
				/* 沿着X轴平移变形 */
				transform: translateX(0px);
			}
			.tu3 {
				/* 沿着Y轴平移变形 */
				transform: translateY(0px);
			}
			.tu4 {
				/* 斜线平移 */
				/* transform:  translateX(-50px)   translateY(-50px); */
				transform: translate(50px, -50px);
			}
			.tu1:active {
				transform: translate(5px,  5px);
			}
		</style>
	</head>
	<body>
		<h1>变形：扭曲变形</h1>
		<hr>
		<img src="img/1.jpg" class="tu1">
		<hr>
		AA<img src="img/1.jpg" class="tu2">BB
		<hr>
		<img src="img/1.jpg" class="tu3">
		<hr>
		<img src="img/1.jpg" class="tu4">
		<hr>
	</body>
</html>
